package com.xiangban.feign;

import com.xiangban.feign.fallback.CommonMemberFallback;
import com.xiangban.model.res.ApiResult;
import com.xiangban.model.vo.TUserTicket;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author ly
 * @date 2021/12/27 14:55
 */
@Component
@FeignClient(value = "${system.xiangbanmall}",fallbackFactory = CommonMemberFallback.class)
public interface CommonMemberFeign {
    @RequestMapping("/api/mall/user/get_user_Info")//获取用户信息
    @ApiOperation("获取用户会员信息")
    ApiResult<Object> getUserInfo();

    @RequestMapping("/api/mall/ticket/convertTicket")//    核销兑换券
    @ApiOperation("卷码核销")
    ApiResult<Object> convertTicket(TUserTicket tUserTicket);
}
